package icu.groot.alan.dao;

import icu.groot.alan.entity.Announce;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface AnnounceDao {
    List<Announce> getAllAnnounceTask(Connection connection) throws SQLException;

    List<Announce> getNeedComplete(Connection connection, long nowTime) throws SQLException;

    int accounceTask(Connection connection, int taskCode, int endTime, int code) throws SQLException;

    List<Integer> getAlreadyReportAnnounceIds(Connection connection, long endTime, int userCode) throws SQLException;
}
